package com.shop.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.admin.entity.ShopGoods;
import com.shop.admin.entity.ShopOrder;
import com.shop.admin.entity.ShopStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShopStockDao extends BaseMapper<ShopStock> {
    List<ShopStock> selectCountList(@Param("orderId") List<Long> orderId);

    void updateStockCount(@Param("shopGoodsList") List<ShopGoods> shopGoodsList);
}
